package com.qf.bean;

/**
 * 2019/12/6
 * Administrator
 * springboot1204
 * 面向对象面向君  不负代码不负卿
 */
public class Student2 {

    private Integer stuid;
    private String sname;
    private Integer gradeid;

    private Grade2 grade2;

    public Grade2 getGrade2() {
        return grade2;
    }

    public void setGrade2(Grade2 grade2) {
        this.grade2 = grade2;
    }

    @Override
    public String toString() {
        return "Student2{" +
                "stuid=" + stuid +
                ", sname='" + sname + '\'' +
                ", gradeid=" + gradeid +
                '}';
    }

    public Student2() {
    }

    public Student2(Integer stuid, String sname, Integer gradeid) {
        this.stuid = stuid;
        this.sname = sname;
        this.gradeid = gradeid;
    }

    public Integer getStuid() {
        return stuid;
    }

    public void setStuid(Integer stuid) {
        this.stuid = stuid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getGradeid() {
        return gradeid;
    }

    public void setGradeid(Integer gradeid) {
        this.gradeid = gradeid;
    }
}
